//用户信息接口
export interface userinfo {
  name: string;
  pwd: string;
  nickName?: string;
  imgUrl?: string;
}
//操作服务层数据库返回值类型
export type asyncPromise = Promise<
  { [propName: string]: string } | null | void | string
>;
// 对象自定义键
export interface propName {
  [propName: string]: string | number;
}
//自定义ajaxpromiseJSON对象

export interface article {
  id?: string;
  title?: string;
  titles?: string;
  author?: string;
  browesNum?: string;
  comment?: string;
  fontlength?: string;
  createdTime?: string;
  content?: string;
  label?: string;
}

export interface findtitlelimit {
  count: number;
  rows: Array<{ article: article }>;
}

//自定
export interface ajaxPromiseObject {
  status: string;
  msg: string;
  data: Array<article | propName> | propName;
}
